x86: prevent PVH Dom0 from having pages with more than one ref
authorRoger Pau Monné <roger.pau@citrix.com>
Wed, 18 Jun 2014 13:52:25 +0000 (15:52 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 18 Jun 2014 13:52:25 +0000 (15:52 +0200)
commit86104258d36a2d3b0c92aabd2147c731b792f501
tree4043452249ebec65008c99d80b863e263eb90ee2
parentaf9505932c0e00233fa2d060f1607ac0b174ac6b
x86: prevent PVH Dom0 from having pages with more than one ref

On PV guests a reference is taken when a page gets added to the page
tables, which makes pages added to the page tables have two
references, but this is not suitable for PVH that doesn't use the
PVMMU. In the PVH case only one reference has to be taken or else the
page would not be freed when the memory of the domain is decreased.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/domain_build.c